<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

    <h:body>
        <h:form>
            <p:dataTable id="tb2" var="att"   value="#{AllTransService.transTypesArr}">  
                <p:column>  
                    <f:facet name="header">  
                        <h:outputText value="TST Name" />  
                    </f:facet>  
                    <p:column>
                        <h:outputText value="#{att.name}" />
                    </p:column>
                </p:column>  

                <p:column>  
                    <f:facet name="header">  
                        <h:outputText value="TST id" />  
                    </f:facet>  
                    <p:column>
                        <h:outputText value="#{att.id}" />
                    </p:column>  
                </p:column>  

                <p:column>
                    <f:facet name="header">
                        <h:outputText value="Update"/>
                    </f:facet>
                    <h:commandLink value="Edit and View" action="#{AllTransService.viewFun}" />  
                </p:column>


            </p:dataTable> 
        </h:form>
    </h:body>
</html>

